package classes;

public class Long2Int {
    public static void main(String[] args) {
        long l = -(Long.MAX_VALUE - 1);
        System.out.println(l);
        System.out.println(Long.toBinaryString(l));
        int i = (int) l;
        System.out.println(i);
        System.out.println(Integer.toBinaryString(i));
    }
}
